
const express = require('express');
const router = express.Router();
const authController = require('../../controllers/auth.controller');
const validate = require('../../middlewares/validate');
const authValidation = require('../../validations/auth.validation');

// 用户登录
router.post('/login', validate(authValidation.loginSchema), authController.login);

// 刷新令牌
//router.post('/refresh-token', validate(authValidation.refreshToken), authController.refreshToken);

// 密码重置请求
// router.post('/forgot-password', validate(authValidation.forgotPassword), authController.forgotPassword);

// 重置密码
//router.post('/reset-password', validate(authValidation.resetPassword), authController.resetPassword);

module.exports = router;